<script setup lang="ts">
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { useSupplierStore } from '@/store/index'

const supplierStore = useSupplierStore()
onLaunch(() => {
  console.log('App Launch')
  try{
    uni.hideTabBar()
  }catch(err){}
  supplierStore.getSupplierInfo()
})
onShow(() => {
  console.log('App Show')
  try{
    uni.hideTabBar()
  }catch(err){}
  supplierStore.getMessageCount()
})
onHide(() => {
  console.log('App Hide')
})
</script>
<style lang="scss">
@import 'uview-plus/index.scss';

/* 设置全局背景色 */
page {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: #fff;
  height: 100vh;
  box-sizing: border-box;
}
</style>
